package com.example.design.decorators;

public class BudingTea implements Milk{

    private  Milk milk;
    public  BudingTea(Milk milk){
        this.milk=milk;
    }
    @Override
    public String getName() {
        return "布丁奶茶";
    }

    @Override
    public double getPrice() {
        return milk.getPrice()+10.d;
    }
}
